import request from '@/router/axios';
import qs from 'qs';

// 查询借还 分页
export const getListOfSearch = (data) => request({
    url: '/borrowing/v1/pageQuery',
    method: 'post',
    data: qs.stringify(data),
})

// 查询仓库列表
export const getListLab = (data) => request({
    url: '/warehouse/v1/findAll',
    method: 'post',
    data: qs.stringify(data),
})

// 主键查询详情
export const findById = (data) => request({
    url: '/borrowing/v1/findById',
    method: 'post',
    data: qs.stringify(data),
})

// 0出库、1终止、2归库
export const outType = (data) => request({
    url: '/borrowing/v1/outType',
    method: 'post',
    data: qs.stringify(data),
})